[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
getdfree() Get Disk Free Space
#include <dos.h>
void getdfree(drive,dfreep);
unsigned char drive; Drive specifier
struct dfree *dfreep; Pointer to structure
getdfree() gets disk information from the drive specified by 'drive'
and fills in the 'dfree' structure pointed to by 'dfreep'. (0 =
default drive, 1 = drive A, etc.) The 'dfree' structure is defined
as:
struct dfree {
unsigned df_avail; /* Available clusters */
unsigned df_total; /* Total clusters */
unsigned df_bsec; /* Bytes per sector */
unsigned df_sclus; /* Sectors per cluster */
};
Returns: Nothing. On error, 'df_sclus' in the 'dfree'
structure is set to -1.
Portability: MS-DOS only.
See Also:
getfat()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson